package com.ymx.darling.mapper.annotation;

import com.ymx.darling.build.mapper.method.ProviderMethodInfo;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 指定某个Mapper方法使用哪个Provider
 * @author 爱Java的小于
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ProviderInvoker {
    /**
     * 指定Provider类
     * @return Class<? extends ProviderMethodInfo>
     */
    Class<? extends ProviderMethodInfo> value();
}
